Skip to content

Conversation

@HeikoKlare
Copy link
Contributor

The find/replace UI tests currently validate for proper focus only in specific situations, usually restricted to when running on GTK. On the one hand, this makes debugging more difficult in case the focus was not properly set in the beginning, e.g., because the workbench window was not active when the test started. On the other hand, it makes the test execution more prone to be indeterministic and platform-specific, as GTK-specific code is involved.

This change provides three improvements to mitigate these issues:

  • It ensures that the workbench window is active when test execution starts
  • It validates that the find/replace UI (overlay/dialog) has focus every time it is opened during test execution
  • It gets rid of GTK-specific focus validation

Issues were investigated in the context of #2254 and this also serves as a preparation for that PR.

@HeikoKlare HeikoKlare marked this pull request as ready for review October 3, 2024 12:00
@github-actions
Copy link
Contributor

github-actions bot commented Oct 3, 2024

Test Results

 1 815 files  ±0   1 815 suites  ±0   1h 40m 57s ⏱️ + 2m 38s
 7 704 tests ±0   7 476 ✅ ±0  228 💤 ±0  0 ❌ ±0 
24 273 runs  ±0  23 526 ✅ ±0  747 💤 ±0  0 ❌ ±0 

Results for commit 7d10914. ± Comparison against base commit e37086d.

♻️ This comment has been updated with latest results.

The find/replace UI tests currently validate for proper focus only in
specific situations, usually restricted to when running on GTK. On the
one hand, this makes debugging more difficult in case the focus was not
properly set in the beginning, e.g., because the workbench window was
not active when the test started. On the other hand, it makes the test
execution more prone to be indeterministic and platform-specific, as
GTK-specific code is involved.

This change provides three improvements to mitigate these issues:
- It ensures that the workbench window is active when test execution
starts
- It validates that the find/replace UI (overlay/dialog) has focus every
time it is opened during test execution
- It gets rid of GTK-specific focus validation
@HeikoKlare HeikoKlare force-pushed the findreplace-validate-focus branch from 98ab0ad to 7d10914 Compare October 3, 2024 12:41
@HeikoKlare HeikoKlare merged commit c777660 into eclipse-platform:master Oct 3, 2024
@HeikoKlare HeikoKlare deleted the findreplace-validate-focus branch October 3, 2024 13:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant